package com.ruoyi.camp.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预约对象 c_appointment
 * 
 * @author yeluochen
 * @date 2024-11-29
 */
public class Appointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约id */
    private String atId;

    /** 营地id */
    @Excel(name = "营地id")
    private String campId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;
    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adTime;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal adPrice;

    /** 预约状态 */
    @Excel(name = "预约状态")
    private Long atStatus;

    private List<Details> detailsList;

    public List<Details> getDetailsList() {
        return detailsList;
    }

    public void setDetailsList(List<Details> detailsList) {
        this.detailsList = detailsList;
    }
    public void setAtId(String atId)
    {
        this.atId = atId;
    }

    public String getAtId()
    {
        return atId;
    }
    public void setCampId(String campId) 
    {
        this.campId = campId;
    }

    public String getCampId() 
    {
        return campId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setAdTime(Date adTime) 
    {
        this.adTime = adTime;
    }

    public Date getAdTime() 
    {
        return adTime;
    }
    public void setAdPrice(BigDecimal adPrice) 
    {
        this.adPrice = adPrice;
    }

    public BigDecimal getAdPrice() 
    {
        return adPrice;
    }
    public void setAtStatus(Long atStatus) 
    {
        this.atStatus = atStatus;
    }

    public Long getAtStatus() 
    {
        return atStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("atId", getAtId())
            .append("campId", getCampId())
            .append("userId", getUserId())
            .append("adTime", getAdTime())
            .append("adPrice", getAdPrice())
            .append("atStatus", getAtStatus())
            .toString();
    }
}
